<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <form>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </form>
    <button id="123" onclick="a()">咬我啊</button>
    <button id="132">吃我啊</button>
</body>
<script>
    document.querySelectorAll("button")[1].onclick=function(){console.log("吃食了你")}
    function a(){
        console.log("快咬我")
    }
    console.log("hello")
    let arr =[1,2,3];
    arr[0]=32;
    arr[1]='小鸡哔哔哔';
    arr.push="我真帅";
    for (let i = 0; i < arr.length;i++) {
        console.log(arr[i])
    }
    console.log("---------------------------------------");
    function abc(a,b){
        return a+b;
    }
    console.log(abc(1,2));
    console.log("---------------------------------------");
    function acc(...ab){
        let a =0;
        for (let i = 0; i < ab.length; i++) {
            a+=ab[i];
        }
        return a;
            }
            console.log(acc(1,2,3,4,5,67,8));
            console.log("---------------------------------------");
           
</script>
</html>